package com.sky.entity;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

// 添加这个导入
import org.apache.ibatis.type.TypeHandler;

@Data
public class VueFormFieldConfig {
    private Long id;
    private Long templateId;
    
    @JsonProperty("material_type")  // 添加此注解来映射前端的 material_type
    private String materialType;
    
    private String category;
    private Integer materialCategory;
    private String fieldName;
    private String fieldLabel;
    private String fieldType;
    private Boolean required;
    private Integer sortOrder;
    private String fieldGroup;
    
    @JsonProperty("field_options")
    private List<String> fieldOptions; 
}